<%@ page import="com.time.domain.User" %>
<%@ page contentType="text/html;charset=UTF-8" %>

<html>
<head>
    <title>易买网 - 首页</title>
    <link type="text/css" rel="stylesheet" href="/css/style.css"/>
    <script type="text/javascript" src="/scripts/function.js"></script>
</head>

<body>
<%session.removeAttribute(User.USER_IN_SESSION);%>
<%@ include file="/WEB-INF/common/head.jsp" %>
<div id="register" class="wrap">
    <div class="shadow">
        <em class="corner lb"></em>
        <em class="corner rt"></em>
        <div class="box">
            <h1>欢迎回到易买网</h1>
            <form id="loginForm" method="post" action="/user/login" onsubmit="return checkForm(this)">
               <input type="hidden" name="url" value="${url}">
                <p style="color: red; margin-left: 180px;font-size: 13px">${loginError}</p>
                <table>
                    <tr>
                        <td class="field">用户名：</td>
                        <td><input class="text" type="text" name="userId" onfocus="FocusItem(this)"
                                   onblur="CheckItem(this);"/><span></span></td>
                    </tr>
                    <tr>
                        <td class="field">登录密码：</td>
                        <td><input class="text" type="password" id="passWord" name="password" onfocus="FocusItem(this)"
                                   onblur="CheckItem(this);"/><span></span></td>
                    </tr>

                    <tr>
                        <td></td>
                        <td><label class="ui-green"><input type="submit" name="submit" value="立即登录"/></label></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <div class="clear"></div>
</div>
<%@ include file="/WEB-INF/common/footer.jsp" %>
</body>
</html>
